package src.lab02.test05;

import java.util.Scanner;

/**
 * Created by 林云志 on 2017/10/14.
 */
public class Cube {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        Scanner cube = new Scanner(System.in);
        System.out.println("请输入立方体的长");
        double cubelong = cube.nextInt();
        System.out.println("请输入立方体的宽");
        double cubewide = cube.nextInt();
        System.out.println("请输入立方体的高");
        double cubehigh = cube.nextInt();
        double volume = volume(cubelong,cubewide,cubehigh);
        System.out.println("立方体的体积为"+volume);
    }
    public static double volume(double Long, double wide, double high){
        double volume = Long * wide * high;
        return volume;
    }
}
